
<%-- 
    Document   : ConsulterFicheEtudiant
    Created on : 21 mars 2013, 13:39:56
    Author     : Fabien
--%>

<%@page import="com.myapp.bean.Etudiant"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Consulter Fiche Etudiant</title>
        <link rel="stylesheet" href="JSP/style/style.css">
    </head>
    <body>
        <%-- Ici, pour eviter le doublons de jsp on affiche le header en fonction du type de personne qui se connecte --%>

        <% if (request.getSession().getAttribute("typeCo").equals("secretariatCo")) {%>
        <header><%@ include file="../headers/menuSecretariat.jsp"%></header>
        <% } else if (request.getSession().getAttribute("typeCo").equals("enseignantCo")) {%>
        <header><%@ include file="../headers/menuEnseignant.jsp"%></header>
        <% }%> 

        <div id="contenu">
            <h2>Consulter Fiche étudiant </h2>
            <br> <br>
            <form action="UploadEt.do" method="post" enctype="multipart/form-data">
            <input type="hidden" name="type" value="telecharge"/>
            <table  border="0" >
                

                    <% Etudiant e = (Etudiant) request.getAttribute("etudiant");%>
                    
                    <tr>
                        <td>Nom</td>
                        <td><input type="text" readonly value="<%=e.getNom()%>" name="nom"/></td> 
                    </tr>
                    <tr>
                        <td>Prénom</td>
                        <td><input type="text" readonly value="<%=e.getPrenom()%>" name="prenom"/></td>
                    </tr>
                    <tr>
                        <td>Promotion</td>
                        <td><input type="text" readonly value="<%=e.getPromotion() %>" name="promotion"/></td>
                    </tr>
                    <tr>
                        <td>Date de naissance</td>
                        <td><input type="text" readonly value="<%=e.getDateNaissance()%>" name="dateNaissance"/></td>
                    </tr>
                    <tr>
                        <td>Téléphone</td>
                        <td><input type="text" readonly value="<%=e.getTelephone()%>" name="telephone"/></td>
                    </tr>
                    <tr>
                        <td>Adresse</td>
                        <td><input type="text" readonly value="<%=e.getAdresse()%>" name="adresse"/></td>
                    </tr>
                    <tr>
                        <td>Mail</td>
                        <td><input type="text"  readonly value="<%=e.getMail()%>" name="mail"/></td>
                    </tr>
                    <tr>
                        <td>Convention</td>
                        <td><input type="submit" name="télécharger" value="Télécharger la convention"></td>
                    </tr>
             
                
            </table>
            </form>       
        </div>

        <footer><%@ include file="../headers/Footer.jsp"%></footer>   
    </body>
</html>